// Slingshots for a pinball machine
//
// (c)2012 Felipe Sanches <fsanches@metamaquina.com.br>
// licensed under GPLv3 or later

inch=25.4;

module slingshot_mount_holes(angle=0, playfield_thickness=15){
  translate([0,0,-playfield_thickness-1])
  linear_extrude(height=playfield_thickness+2)
  slingshot_mount_holes_2d(angle);
}

module slingshot_mount_holes_2d(angle=0, $fn = 40){
  radius = 8;

  rotate([0,0,angle]){
    translate([-30,0])
    circle(r=radius);

    translate([-4,0])
    hull(){
      translate([0,-4])
      circle(r=radius-2);
      translate([0,8])
      circle(r=radius-2);
    }

    translate([30,0])
    circle(r=radius);
  }
}

module slingshot(angle=0){
//TODO  
}

